﻿using System;
using System.Collections.Generic;
using LuxuryResort.DAO;
using LuxuryResort.Entity;

namespace LuxuryResort.BIZ
{
    public class FoodOrderBiz : BaseBiz, IFoodOrderBiz
    {
        private readonly FoodOrderDAO _foodOrderDAO = new FoodOrderDAO();

        public void OrderFood(List<Food_Beverage_Order> orders, Guid userId, Guid resortId)
        {
            _foodOrderDAO.Insert(orders, userId, resortId);
        }

        public List<KeyValuePair<string, Food_Beverage_Order>> GetAll(Guid userId, Guid resortId)
        {
            return _foodOrderDAO.GetAll(userId, resortId);
        }
    }
}